package car.construction.injection;

public class Car {
    private Specification specification;
    public Car(Specification specification) {
        System.out.println(" Car Constructor is called");
        this.specification = specification;
    }
    public void displayDetails() {
        System.out.println("Car Specification: " + specification.toString());
    }
}
